#ifndef CHAN_INCLUDED
#define CHAN_INCLUDED

#define T Chan_T // channel between threads

typedef struct T *T;

T    Chan_new();
int  Chan_send(T c, const void *ptr, int size);
int  Chan_receive(T c, void *ptr, int size);

#undef T

#endif

